package com.scwatch.core.service;

import com.scwatch.common.orm.RowSide;
import com.scwatch.core.domain.HotWord;
import com.scwatch.core.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import java.util.List;
import java.util.Map;

/**
 * Created by rh005 on 2017/7/12.
 */
public interface HotWordService {
    public Page<HotWord> findAll(Map<String, String[]> params,
                                 Pageable pageable);

    public RowSide<HotWord> findSide(Map<String, String[]> params,
                                     HotWord bean, Integer position, Sort sort);

    public List<HotWord> getList();

    public HotWord get(Integer id);

    public String replace(String s);

    public HotWord save(HotWord bean, Integer siteId, User user);

    public HotWord update(HotWord bean);

    public HotWord delete(Integer id);

    public HotWord[] delete(Integer[] ids);
}
